<table>
    <thead>
        <tr>
            <g:sortableColumn property="serialNumber" title="${message(code: 'dealer.serialNumber.label', default: 'Dealer Number')}" />
            <g:sortableColumn property="name" title="${message(code: 'dealer.name.label', default: 'Name')}" />
            <g:sortableColumn property="alias" title="${message(code: 'dealer.alias.label', default: 'Alias')}" />
            <g:sortableColumn property="shortcut" title="${message(code: 'dealer.shortcut.label', default: 'Shortcut')}" />
            <g:sortableColumn property="head" title="${message(code: 'dealer.head.label', default: 'Head')}" />
            <g:sortableColumn property="salesMan" title="${message(code: 'dealer.salesMan.label', default: 'Sales Man')}" />
            <g:sortableColumn property="Owner" title="${message(code: 'dealer.owner.label', default: 'Owner')}" />
        </tr>
    </thead>
    <tbody>
    <g:each in="${dealerInstanceList}" status="i" var="dealerInstance">
        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
            <td><g:link action="show" id="${dealerInstance.id}">${fieldValue(bean: dealerInstance, field: "serialNumber")}</g:link></td>
            <td>${fieldValue(bean: dealerInstance, field: "name")}</td>
            <td>${fieldValue(bean: dealerInstance, field: "alias")}</td>
            <td>${fieldValue(bean: dealerInstance, field: "shortcut")}</td>
            <td>${fieldValue(bean: dealerInstance, field: "head")}</td>
            <td>${fieldValue(bean: dealerInstance, field: "salesMan")}</td>
            <td>${fieldValue(bean: dealerInstance, field: "owner")}</td>
        </tr>
    </g:each>
    </tbody>
</table>